import { createRouter, createWebHistory } from 'vue-router'
import Login from '../views/login/Login.vue'

const routes = [
  {
    path: '/',
    name: 'Login',
    component: Login
  },
  {
    path: '/menu',
    name: 'Menu',
    component: () => import('../views/layout/menu/Menu.vue')
  },
  {
    path: '/index',
    name: 'Index',
    component: () => import('../views/layout/index/Index.vue')
  },
  {
    path: '/index/modify',
    name: 'Modify',
    component: () => import('../views/layout/index/indexModifyInfo.vue')
  }
]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes
})

export default router
